package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Account  string `gorm:"type:varchar(30)"json:"Account"`
	Password string `gorm:"type:varchar(32)"json:"Password"`
}

type Book struct {
	gorm.Model
	UserId int    `gorm:"type:int"json:"UserId"`
	Title  string `gorm:"type:varchar(30)"json:"Title"`
	Text   string `gorm:"type:varchar(500)"json:"Text"`
	Type   string `gorm:"type:varchar(20)"json:"type"`
}
